package top.infopub.mgr.bpa.dao;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.IncaeSureDetailAndSubDomain;
import top.infopub.model.bpa.IncaeSureDetail;

/** 对内建安产值确权清单分解子项明细(BPA_INCAE_SURE_DETAIL) **/
public interface IncaeSureDetailDao extends GenericDao<IncaeSureDetail, String> {

    /**
     * 批量添加对内建安产值确权清单分解子项明细
     */
    void insertByBatch(@Param("list")List<IncaeSureDetail> incaeSureDetails);
    
    /**
     * 根据分项名称和对内建安产值确权id查询开累对内确权总金额
     * @param subName 分项名称
     * @param refId 对内建安产值确权id
     * @return 
     * @see
     */
    BigDecimal selectAddupAmountBySubNameAndRefId(@Param("subName")String subName, 
                                                  @Param("refId")String refId,
                                                  @Param("typeName")String typeName);
    
    
    List<IncaeSureDetailAndSubDomain> queryByProCode(@Param("proCode")String proCode);
    
    BigDecimal selectAddupAmountAfter(Map<String, Object> map);
	
}